<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ page import="java.util.*,java.io.*,java.sql.*,InvestmentPojo.*;" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Investment gateways</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
</head>
<% 
String defaultShowServicePage = null != request.getAttribute("defaultShowServicePage")?(String)request.getAttribute("defaultShowServicePage"):"";
String UserIDForservice = null != request.getAttribute("UserIDForservice")?(String)request.getAttribute("UserIDForservice"):"";
List li = null != request.getAttribute("returnList")?(List) request.getAttribute("returnList"):null; 
String name = "";
Calendar cal = Calendar.getInstance();
String headerTitle = null != request.getAttribute("headerTitle")?(String)request.getAttribute("headerTitle"):"DEFINITIONS";
String headerTitle1 = null != request.getAttribute("headerTitle1")?(String)request.getAttribute("headerTitle1"):"DEFINITIONS";
int a = 1;
int b = 1;
%>
<body>
		<%if(UserIDForservice.equals("4") || UserIDForservice.equals("1")){ %>
		<table width='100%' align='center' border='0' class='TBFORM'  style='border-radius:5px' cellspacing ='0' cellpadding='3' !important; valign='center'>
		<tr class ='TITLEFORM' ><td colspan='5'><font style='font-family:Verdana, Arial, Helvetica, sans-serif;font-size:14px' valign='center' color='white'><b><%=headerTitle%> </b></font></TD></TR>
		<tr><td width='5%' class='THFont'>Sr No</td><td width='20%' class='THFont'>Sub Section/Rule/Regulation</td><td width='75%' class='THFont'>Definitions</td></tr>
		
		<% if(null != li && !li.isEmpty()){
			if(li.size() > 5){ %>
				<tr> <td colspan='5'> <table width='100%' style='height: 300px; overflow-y: auto; display: block;'>
			<% }else{ %>	 
				<tr> <td colspan='5'>  <table width='100%'>
		<% 	}  	
		for(int i=0;i<li.size();i++){
			  DefinitionsPojo obj = (DefinitionsPojo)li.get(i); 
			  name = null != obj.getDefinitionName()?obj.getDefinitionName():"";
			  if(null != obj.getAct_rule() && (obj.getAct_rule().equals("Deposits") )){
			   %>
			  <tr onmouseover="style.backgroundColor='#ee7e4'" onmouseout="style.backgroundColor=''" bgcolor='<%=a % 2 == 0 ? "#F4FFFF" : "white" %>'><td width='5%' class='PH1'><font class='textFont' !important;><%=a %></font></td><td width ='20%' class='PH1'><font class='textFont' !important;><%=obj.getSection_Rule() %></font></td><td width ='75%' class='PH1'><font class='textFont' !important;><%=obj.getDefinition() %></font></td><tr>
		<%a++; }}
		}else{ %>
			  <tr><td width='90%' colspan='5' class='PH1' align='center'><font class='textFont' !important;>*** THERE ARE NO RECORDS AVILABLE FOR THIS SECTION ***</font></td></tr>
		<% } %>
		</td></tr></table>
		</table>
		<br><br>
		<table width='100%' align='center' border='0' class='TBFORM'  style='border-radius:5px' cellspacing ='0' cellpadding='3' !important; valign='center'>
		<tr class ='TITLEFORM' ><td colspan='5'><font style='font-family:Verdana, Arial, Helvetica, sans-serif;font-size:14px' valign='center' color='white'><b><%=headerTitle1%></b></font></TD></TR>
		<tr><td width='5%' class='THFont'>Sr No</td><td width='20%' class='THFont'>Sub Section/Rule/Regulation</td><td width='75%' class='THFont'>Definitions</td></tr>
		
		<% if(null != li && !li.isEmpty()){
			if(li.size() > 5){ %>
				<tr> <td colspan='5'><table width='100%'>
			<% }else{ %>	 
				<tr> <td colspan='5'><table width='100%'>
		<% 	}  	
		for(int i=0;i<li.size();i++){
			  DefinitionsPojo obj = (DefinitionsPojo)li.get(i); 
			  name = null != obj.getDefinitionName()?obj.getDefinitionName():"";
			  if(null != obj.getAct_rule() && obj.getAct_rule().equals("Rupee")){
			   %>
			  <tr onmouseover="style.backgroundColor='#ebe7e4'" onmouseout="style.backgroundColor=''" bgcolor='<%=b % 2 == 0 ? "#F4FFFF" : "white" %>'><td width='5%' class='PH1'><font class='textFont' !important;><%=b %></font></td><td width ='20%' class='PH1'><font class='textFont' !important;><%=obj.getSection_Rule() %></font></td><td width ='75%' class='PH1'><font class='textFont' !important;><%=obj.getDefinition() %></font></td><tr>
		<% b++;}}
		}else{ %>
			  <tr><td width='90%' colspan='5' class='PH1' align='center'><font class='textFont' !important;>*** THERE ARE NO RECORDS AVILABLE FOR THIS SECTION ***</font></td></tr>
		<% }%></td></tr></table>
		</table>
		<br><br>
		<%}else { %>
				<table width='100%' align='center' border='0' class='TBFORM'  style='border-radius:5px' cellspacing ='0' cellpadding='3' !important; valign='center'>
				<tr class ='TITLEFORM' ><td colspan='5'><font style='font-family:Verdana, Arial, Helvetica, sans-serif;font-size:14px' valign='center' color='white'><b><%=headerTitle%></b></font></TD></TR>
				<tr><td width='5%' class='THFont'>Sr No</td><td width='20%' class='THFont'>Sub Section/Rule/Regulation</td><td width='75%' class='THFont'>Definitions</td></tr>
		
		<% if(null != li && !li.isEmpty()){
			if(li.size() > 10){ %>
				<tr> <td colspan='5'> <table width='100%' style='height: 400px; overflow-y: auto; display: block;'>
			<% }else{ %>	 
				<tr> <td colspan='5'>  <table width='100%'>
		<% 	}  	
		for(int i=0;i<li.size();i++){
			  DefinitionsPojo obj = (DefinitionsPojo)li.get(i); 
			  name = null != obj.getDefinitionName()?obj.getDefinitionName():"";
			  
			  int j = i+1; %>
			  <tr onmouseover="style.backgroundColor='#ebe7e4'" onmouseout="style.backgroundColor=''" bgcolor='<%=b % 2 == 0 ? "#F4FFFF" : "white" %>'><td width='5%' class='PH1'><font class='textFont' !important;><%=b++ %></font></td><td width ='20%' class='PH1'><font class='textFont' !important;><%=obj.getSection_Rule() %></font></td><td width ='75%' class='PH1'><font class='textFont' !important;><%=obj.getDefinition() %></font></td><tr>
		<% }
		}else{ %>
			  <tr><td width='90%' colspan='5' class='PH1' align='center'><font class='textFont' !important;>*** THERE ARE NO RECORDS AVILABLE FOR THIS SECTION ***</font></td></tr>
		<% }
		} %>
</td></tr></table>
</table>
</body>
</html>